Problem Note 42119: An error is issued when you attempt to register a DB2 table in metadata
The following error message can be issued when you attempt to register very large DB2 tables in metadata:
ERROR: CLI cursor fetch error: [IBM][CLI Driver][DB2/AIX64] SQL0413N
Overflow occurred during numeric data type conversion. SQLSTATE=22003
The DB2 API does not support BIGINT data type for CARDINALITY columns and therefore, SAS/ACCESS® Interface to DB2 is not able to support it either. Currently in the DB2 API, CARDINALITY is defined as an INTEGER and if a very large table is used the above error is received. For example, a table with over 6 billion rows in an index can cause the error above when SAS tries to query the information about the index.
This issue occurs outside of SAS using the DB2 command-line processor as well.
To work around this issue:
- Drop the indexes on the DB2 table outside of SAS, import the large table into metadata within SAS, and then recreate the indexes on the DB2 table outside of SAS.
- Create a duplicate of the original table without any rows and call it 'dummy' outside of SAS. Rename the original table to 'old' outside of SAS. Now rename the dummy table to the original table outside of SAS. Import the table, which is really just the dummy (empty) table with same metadata within SAS. Then finally rename the old table back to the original table outside of SAS.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to DB2 | Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows XP 64-bit Edition | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft® Windows® for x64 | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows Server 2003 for x64 | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows Server 2008 | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows Server 2008 for x64 | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows XP Professional | 9.2 TS2M3 | 9.3 TS1M1 |
Windows 7 Enterprise 32 bit | 9.2 TS2M3 | 9.3 TS1M1 |
Windows 7 Enterprise x64 | 9.2 TS2M3 | 9.3 TS1M1 |
Windows 7 Home Premium 32 bit | 9.2 TS2M3 | 9.3 TS1M1 |
Windows 7 Home Premium x64 | 9.2 TS2M3 | 9.3 TS1M1 |
Windows 7 Professional 32 bit | 9.2 TS2M3 | 9.3 TS1M1 |
Windows 7 Professional x64 | 9.2 TS2M3 | 9.3 TS1M1 |
Windows 7 Ultimate 32 bit | 9.2 TS2M3 | 9.3 TS1M1 |
Windows 7 Ultimate x64 | 9.2 TS2M3 | 9.3 TS1M1 |
Windows Vista | 9.2 TS2M3 | 9.3 TS1M1 |
Windows Vista for x64 | 9.2 TS2M3 | 9.3 TS1M1 |
64-bit Enabled AIX | 9.2 TS2M3 | 9.3 TS1M1 |
64-bit Enabled HP-UX | 9.2 TS2M3 | 9.3 TS1M1 |
64-bit Enabled Solaris | 9.2 TS2M3 | 9.3 TS1M1 |
HP-UX IPF | 9.2 TS2M3 | 9.3 TS1M1 |
Linux | 9.2 TS2M3 | 9.3 TS1M1 |
Linux for x64 | 9.2 TS2M3 | 9.3 TS1M1 |
Solaris for x64 | 9.2 TS2M3 | 9.3 TS1M1 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | high |
Topic: | Data Management ==> Data Sources ==> External Databases ==> DB2
|
Date Modified: | 2011-02-01 09:38:55 |
Date Created: | 2011-01-19 09:14:28 |